
<h1><span class="yiyi-st" id="yiyi-13">numpy.ma.MaskedArray.__setstate__</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.MaskedArray.__setstate__.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.MaskedArray.__setstate__.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="method">
<dt id="numpy.ma.MaskedArray.__setstate__"><span class="yiyi-st" id="yiyi-14"> <code class="descclassname">MaskedArray.</code><code class="descname">__setstate__</code><span class="sig-paren">(</span><em>state</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/numpy/numpy/blob/v1.11.3/numpy/ma/core.py#L5856-L5871"><span class="viewcode-link">[source]</span></a></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-15">恢复已屏蔽数组的内部状态，以便进行pickling。</span><span class="yiyi-st" id="yiyi-16"><code class="docutils literal"><span class="pre">state</span></code>通常是<code class="docutils literal"><span class="pre">__getstate__</span></code>输出的输出，是一个5元组：</span></p>
<ul class="simple">
<li><span class="yiyi-st" id="yiyi-17">班级名称</span></li>
<li><span class="yiyi-st" id="yiyi-18">一个给出数据形状的元组</span></li>
<li><span class="yiyi-st" id="yiyi-19">数据的类型代码</span></li>
<li><span class="yiyi-st" id="yiyi-20">数据的二进制字符串</span></li>
<li><span class="yiyi-st" id="yiyi-21">用于掩码的二进制字符串。</span></li>
</ul>
</dd></dl>
